//
// Created by wang on 2021/7/21.
//

#ifndef ENET_THR_H
#define ENET_THR_H

#include <semaphore.h>
#include "cmn.h"
#include "etypes.h"

typedef sem_t e_sem_t;

ret_t e_sem_init(e_sem_t *sem, unsigned int value);
void e_sem_destroy(e_sem_t *sem);
void e_sem_wait(e_sem_t *sem);
void e_sem_post(e_sem_t *sem);



#endif //ENET_THR_H
